package com;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.xxg.eurekaclient.config.CustomIdGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.util.SocketUtils;

@SpringBootApplication
@EnableEurekaClient
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 3600)
public class EurekaclientApplication {

    @Bean
    public IdentifierGenerator idGenerator() {
        return new CustomIdGenerator();
    }


    public static void main(String[] args) {
        SpringApplication.run(EurekaclientApplication.class, args);
    }

}
